package chuangyi.com.org.ViewModel;

import android.app.Activity;
import android.content.Context;
import android.databinding.Bindable;
import android.view.View;
import android.widget.AdapterView;
import android.widget.CalendarView;
import android.widget.ListView;
import android.widget.NumberPicker;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Locale;

import chuangyi.com.org.DOMIHome.BR;
import chuangyi.com.org.DOMIHome.Fragments.CommonFragment;
import chuangyi.com.org.DOMIHome.HomeActivity;
import chuangyi.com.org.DOMIHome.PickerView;
import chuangyi.com.org.DOMIHome.R;
import chuangyi.com.org.DOMIHome.Utils.Utils;

/**
 * 专家申请协议内容
 * Created by zxh on 16/12/11.
 */

public class ApplyExpertContractModel extends ObservableWithGoBackHandler {
    private boolean agreed;
    private String content;
    private String url = "http://domi.zhonghouqianyuan.com/MobileJson/Index/protocle";

    @Bindable
    public boolean isAgreed() {
        return agreed;
    }

    public void setAgreed(boolean agreed) {
        this.agreed = agreed;
        notifyPropertyChanged(BR.agreed);
    }

    @Bindable
    public String getUrl() {
        return url;
    }

    @Bindable
    public String getContent() {
        return content;
    }

    public ApplyExpertContractModel(Context context) {
        super(context);
        super.getHandler().setTitle("申请成为专家");
        agreed = false;
    }

    public void onClickNextStep(View view) {
        ApplyReserve.showFragment(getContext());
    }
}
